import Vue from 'vue'
import Vuex from 'vuex'
import state from './state'
import mutations from './mutations'
import actions from './actions'
import saveInLocal from './plugin/saveInLocal'

Vue.use(Vuex)

export default new Vuex.Store({
  strict: false, // 严格模式，一旦开启就不能通过赋值方式来改变state中数据
  state,
  mutations,
  actions,
  modules: {
  },
  plugins: [saveInLocal]
})
